package com.cloudeasy.config.properties;

import lombok.Data;

/**
 * Create By 郭金宝 on 2019/1/11.<br>
 */
@Data
public class AliyunProperties {
    private AliyunKeyProperties key = new AliyunKeyProperties();
    private RocketMqProperties rocketMq = new RocketMqProperties();
    private AliyunSmsProperties sms = new AliyunSmsProperties();

    @Data
    public class AliyunKeyProperties {
        /**
         * 秘钥id
         */
        private String accessKeyId;

        /**
         * 秘钥
         */
        private String accessKeySecret;
    }

    @Data
    public class RocketMqProperties {
        private String consumerGroup;
        private String producerGroup;
        private String namesrvAddr;
        /**
         * 生产者是否使用可靠消息, 默认不使用 @MqConsumerStore
         */
        private boolean reliableMessageProducer;
        /**
         * 消费者是否使用可靠消息, 默认不使用 @MqProducerStore
         */
        private boolean reliableMessageConsumer;
    }

    @Data
    public class AliyunSmsProperties {

        /**
         * 阿里云管理控制台中配置的短信签名（状态必须是验证通过）
         */
        private String signName;

        /**
         * 机房信息
         */
        private String regionId;

        /**
         * 端点
         */
        private String endpoint;

        /**
         * 端点名称
         */
        private String endpointName;

        private String product;

        private String domain;
    }
}